
window.onload = function() {
    //预加载动画
    appMaster.preLoader();

    //Nav选中处理
    var posi = {
        'schoolPartner': 1,
        'news': 2,
        'caseShow': 3,
        'instructions': 4,
        'login': 6
    }
    var routeName = location.href.slice(location.href.lastIndexOf('/') + 1, location.href.lastIndexOf('.'))
    var index = posi[routeName]
    if (index)
        $('.nav>li').eq(index).find('a').addClass('active')
}
